package com.hq.fxh.No3_TuiGuang.MyMoBan;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.hq.fxh.R;

/**
 * @author 大圣
 * @ClassName AdTypeItem
 * @Description : 广告类型
 * @Created 2015/11/17 0017
 * @Email qwqe601660957@163.com
 */
public class AdTypeItem implements IAdapterItem<AdType> {
    private TextView tvName;

    @Override
    public int getLayoutResId() {
        return R.layout.item_ad_type;
    }

    @Override
    public void onBindViews(View root) {
        tvName = (TextView) root.findViewById(R.id.tvName);
    }

    @Override
    public void onSetViews(Context context) {

    }

    @Override
    public void onUpdateViews(Context context, AdType model, int position) {
        tvName.setText(model.getName());
    }
}
